package com.hmall.api.item;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Collection;

/**
 * @author ghy
 * @version 1.0
 * @since 2025-09-03 22:26
 */
@FeignClient(name = "cart-service")
public interface CartClient {

    // @DeleteMapping("/carts")
    // void deleteCartItemByIds(@RequestParam("ids") Collection<Long> ids);

    @DeleteMapping("/inner/carts")
    void deleteCartItemByIds(@RequestParam("userId") Long userId,
                             @RequestParam("ids") Collection<Long> ids);
}
